<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            position: relative;
            margin: 100px auto;
        }
        p {
            font-size: 15px;
        }
    </style>
</head>
<body>
    <div>
        <img src="C:\java-script_learning\image\X copy.jpg" id="i1">
        <p>下载手机淘宝</p>
        <img src="C:\java-script_learning\image\taobaocode.jpg" id="i2">
    </div>
    <script>
        var i1 = document.querySelector('#i1');
        var i2 = document.querySelector('#i2');
        var z1 = document.querySelector('p');
        var box = document.querySelector('div');
        i1.onclick = function() {
            box.style.display = 'none';
        }
    </script>
</body>
</html>